package cn.rongdao.jrkabao.model.main.vip;

import com.mifengkong.frtools.http.request.HttpFunction;

import java.util.List;

import cn.rongdao.jrkabao.bean.main.vip.VipPurchaseRecordBean;
import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;


/**
 * Created by jack on 2018/1/26
 */

public class VipPurchaseRecordModel extends BaseKaMaoModel {

    public static VipPurchaseRecordModel getInstance() {
        return getPresent(VipPurchaseRecordModel.class);
    }

    public void execute(Observer<List<VipPurchaseRecordBean>> observer) {
        Observable<List<VipPurchaseRecordBean>> observable = mServletApi.getPurchaseList(mParams).map(new HttpFunction<List<VipPurchaseRecordBean>>());
        toSubscribe(observable,observer);
    }
}
